getTextsFromContentView

A helper method to get texts from a Notification's custom content view made by either setCustomBigContentView, setCustomContentView or setCustomHeadsUpContentView. Note that this method will not look for publicVersion made by setPublicVersion.

Return

A list of text from the notification custom content view made by the above method. Note that the method only returns a list of text from one of the custom view as the above when it set, meaning when multiple custom content views has set in a notification, the returned list will base on the detail of custom content and usage as the priority: First is bigContentView, then is contentView when no big content view has set, or headsUpContentView when set. Otherwise, returns the empty list.

Parameters

context

A Context that will be used to inflate the content view from the notification.

notification

The notification from which to get texts from its content view.